{% extends 'RpmAdminBundle::layout.html.twig' %}

{% block content %}

<h1>Tous les RPM</h1>

<div class="header-buttons">
	<a class="btn btn-success right" href="{{ path('rpm_new') }}">Ajouter un rpm</a>
</div>

<table class="table table-hover">
    <thead>
        <tr>
			<th>Editer</th>
            <th>Edition</th>
            <th>Voir</th>
        </tr>
    </thead>
    <tbody>
    {% for entity in entities %}
        <tr>
			<td><a class="btn" href="{{ path('rpm_edit', { 'id': entity.id }) }}"><i class="icon-edit"></i></a></td>
            <td>{{ entity.edition }}</td>
            <td><a class="btn" href="{{ path('rpm_show', { 'id': entity.id }) }}"><i class="icon-eye-open"></i></a></td>
        </tr>
    {% else %}
		<tr><td colspan="3">Aucun rpm n'a été trouvé.</td></tr>
	{% endfor %}
    </tbody>
</table>

{% endblock %}